#include "mesinkata.h"

void IgnoreBlank(){
  while((CC==BLANK)||(CC=='\n')&&(!EOP())) ADV();
  }

void STARTKATA(){
  START();
  if(EOP()) EndKata=true; else EndKata=false;
  }  
	
void ADVKATA(){
  if(!EndKata){
    CKata.length=0;
    SalinKata();
    }
  }

void SalinKata(){
  while((CC!=BLANK)&&(CC!='\n')&&(!EOP())&&(CKata.length<=(NMax+1))){
    CKata.TabKata[CKata.length]=CC;
    CKata.length++;
    CKata.TabKata[CKata.length]='\0';
    ADV();
    }
  IgnoreBlank();
  if(EOP()) EndKata=true; else EndKata=false;
  }
